﻿@model List<SitemapLink>
@{
    Layout = null;
    ViewBag.MetaWeblogUri = new Uri(this.Request.Url,  Url.Content("MetaWeblog/MetaWeblogAPI.ashx")).ToString();
}
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
    <url>
        <loc><@ViewBag.MetaWeblogUri</loc>
        <lastmod>@DateTime.Now.ToShortDateString()</lastmod>
    </url>   
     @foreach (SitemapLink sitemapLink in ViewData.Model) {
    <url>
        <loc>@(new Uri(Request.Url,  Url.Content("../../" + sitemapLink.Permlink)))</loc>
        <lastmod>@sitemapLink.DateCreated.ToShortDateString() @sitemapLink.DateCreated.ToShortTimeString()</lastmod>
    </url>  
         }  
</urlset>

